<#macro baseTemplate title="sysVentory">
<#assign security=JspTaglibs["http://www.springframework.org/security/tags"] />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>sysVentory - <@spring.message "${title}"/></title>
	<link rel="stylesheet" type="text/css" media="all"  href="${rc.getContextPath()}/resources/css/base.css" />
	<link rel="stylesheet" type="text/css" media="all"  href="${rc.getContextPath()}/resources/css/jquery-ui-1.8.20.custom.css" />
	<script type="text/javascript" src="${rc.getContextPath()}/resources/js/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="${rc.getContextPath()}/resources/js/jquery-ui-1.8.20.custom.min.js"></script>
</head>
<body>
	<div class="page">
		<div class="head line">
			<div class="unit logo"><h1><img src="${rc.getContextPath()}/resources/images/sysventory_logo.jpg" /></h1></div>
			<div class="unit actions">
				<div class="line language-switcher">
					<a href="?locale=de&amp;"><img src="${rc.getContextPath()}/resources/images/language_de.jpg" /></a>
					<a href="?locale=en&amp;"><img src="${rc.getContextPath()}/resources/images/language_en.jpg" /></a>
				</div>
				<div class="line account-menu">
					<@security.authorize ifNotGranted="ROLE_ANONYMOUS">
						<a href="${rc.getContextPath()}/myaccount"><@security.authentication property="principal.username" /></a>&nbsp;(<a href="${rc.getContextPath()}/logout"><@spring.message "logout"/></a>)
					</@security.authorize>				
				</div>
			</div>
		</div>
		<div class="body line">
			<div class="unit leftCol">
				<@security.authorize ifNotGranted="ROLE_ANONYMOUS">
					<#include "/navigation_inventory.ftl">
					<#include "/navigation_statistics.ftl">
					<@security.authorize ifAnyGranted="ROLE_INVENTOR">
						<#include "/navigation_admin.ftl">
					</@security.authorize>
				</@security.authorize>
				
			</div>
			<div class="unit main">
				<h2><@spring.message "${title}"/></h2>
				<#nested />
			</div>
		</div>
		<div class="foot line">
			&copy; Stefan Kapferer, J&uuml;rg Untersee, Emir Dervisoski
		</div>
	</div>
	<script type="text/javascript" src="${rc.getContextPath()}/resources/js/scripts.js"></script>
</body>
</html>
</#macro>
